package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "日历")
public class HolidayInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "年")
    private Integer year;

    @ApiModelProperty(value = "月")
    private Integer month;

    @ApiModelProperty(value = "日")
    private Integer day;

    @ApiModelProperty(value = "节日名称")
    private String name;

    @ApiModelProperty(value = "星期")
    private String weekName;

    @ApiModelProperty(value = "0工作日 1周末 2节日 3调休")
    private Integer type;

    @ApiModelProperty(value = "用于同步API节假日的key")
    private String keyDate;

    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date curDate;

    @ApiModelProperty(value = "农历日")
    private String lunars;

    @ApiModelProperty(value = "农历日期")
    private String lunarsDate;

}
